<? include "myfunction/hubung.php"; ?>
<html>
<meta name="author" content="An's Brow"/>
<!---
Nick= An's Brow \\
				= free product http://avs-32.blogspot.com >>>
Name= sAiKuN    //
!--->
<head><title>Home | MyBanking</title></head>
<script language="javascript" src="myfunction/system.js"></script>

<!-- begin css language -->
<style type="text/css">
	body{ font-family: small arial, tahoma; background: #222222 repeat-x; font-size: 12px; color: #FFFFFF; } 
	h1, h2, h3, h4, h5, h6{ margin: 0px; } a{ color: #FFFFFF; text-decoration: none; } 
	#body{ width: 800px; margin: 0 auto; background: #292929; } 
	#body .jd{ background: #010101; padding: 10px 10px; font-size: 1em; text-align: center; } 
	#body .tg{ padding: 10px; border: 2px solid #010101; text-align: justify; } 
	#body .td{ font-size: 12px; text-align: justify; }
</style>
<!-- ending css language -->

<body><center>

<div id="body">
	<h2 class="jd"><font color=#FFFF00>BANKING MACHINE SYSTEM</font></h2>
	<div class="tg" width="800">

	<!-- procedure 1 -->
	<p>INPUT TELLER DATA BANKING</p>
	<table><form name="forma" id=subscribe onSubmit="return forma_onsubmit()" method="post" action="myfunction/send1">
	<tbody>
	<tr>
		<td class="td" width="120" valign="top">Authorize Code</td>
		<td class="td" width="360" colspan="2"><input type="text" name="code" maxlength="8" size="50"/></td>
	</tr>
	<tr>
		<td class="td" width="120" valign="top">Teller Name</td>
		<td class="td" width="360" colspan="2"><input type="text" name="name" maxlength="30" size="50"/></td>
	</tr>
	<tr>
		<td class="td" width="120" valign="top">Address Now</td>
		<td class="td" width="360" colspan="2"><input type="text" name="address" maxlength="50" size="50"/></td>
	</tr>
	<tr>
		<td class="td" width="120" valign="top">No. Telphone</td>
		<td class="td" width="360" colspan="2"><input type="text" name="no_phone" maxlength="15" size="50"/></td>
	</tr>
	<tr>
		<td class="td" width="120">&nbsp;</td>
		<td class="td" width="110"><input type="submit" value="submit" name="submit"/> <input type="reset" value="reset" name="reset"/></td>
		<td class="td">
			<div><a id="teller2" onclick="showhideteller('teller1', 'teller2');"><b><font color="#FF3300">Click here to show data</font></b></a></div>
			<div id="teller1" onclick="showhideteller('teller1', 'teller2');" style="visibility: hidden; position: absolute; border: 1px solid rgb(170, 170, 170); background-color: #008000;">
			<table width="600">
			<tbody>
			<tr>
				<td class="td" colspan="5" valign="top"><b>TABLE TELLER DATA BANKING</b></td>
			</tr>
			<tr>
				<td class="td" width="80">Code</td>
				<td class="td" width="100">Teller Name</td>
				<td class="td" width="240">Address</td>
				<td class="td" width="100">No. Telphone</td>
				<td class="td" width="80">Control</td>
			</tr>
			<?
			$result1 = mysql_query("select * from teller order by name asc");
			while($row1 = mysql_fetch_array($result1)){
			echo "<tr>
				<td class=\"td\">$row1[0]</td>
				<td class=\"td\">$row1[1]</td>
				<td class=\"td\">$row1[2]</td>
				<td class=\"td\">$row1[3]</td>
				<td class=\"td\">::<a href=\"myfunction/hapusteller.php?code=$row1[0]\"><u>Delete</u></a>::</td>
			</tr>";
			}
			?>
			</tbody>
			</table></div>
		</td>
	</tr>
	</tbody></form>
	</table>

	<!-- procedure 2 -->
	<p>INPUT MEMBER DATA BANKING</p>
	<table><form name="formb" id=subscribe onSubmit="return formb_onsubmit()" method="post" action="myfunction/send2">
	<tbody>
	<tr>
		<td class="td" width="120" valign="top">Authorize Code</td>
		<td class="td" width="360" colspan="2"><input type="text" name="code" maxlength="8" size="50"/></td>
	</tr>
	<tr>
		<td class="td" width="120" valign="top">Member Name</td>
		<td class="td" width="360" colspan="2"><input type="text" name="name" maxlength="30" size="50"/></td>
	</tr>
	<tr>
		<td class="td" width="120" valign="top">Address Now</td>
		<td class="td" width="360" colspan="2"><input type="text" name="address" maxlength="50" size="50"/></td>
	</tr>
	<tr>
		<td class="td" width="120" valign="top">No. Telphone</td>
		<td class="td" width="360" colspan="2"><input type="text" name="no_phone" maxlength="15" size="50"/></td>
	</tr>
	<tr>
		<td class="td" width="120">&nbsp;</td>
		<td class="td" width="110"><input type="submit" value="submit" name="submit"/> <input type="reset" value="reset" name="reset"/></td>
		<td class="td">
			<div><a id="member2" onclick="showhidemember('member1', 'member2');"><b><font color="#FF3300">Click here to show data</font></b></a></div>
			<div id="member1" onclick="showhidemember('member1', 'member2');" style="visibility: hidden; position: absolute; border: 1px solid rgb(170, 170, 170); background-color: #008000;">
			<table width="600">
			<tbody>
			<tr>
				<td class="td" colspan="5" valign="top"><b>TABLE MEMBER DATA BANKING</b></td>
			</tr>
			<tr>
				<td class="td" width="80">Code</td>
				<td class="td" width="100">Member Name</td>
				<td class="td" width="240">Address</td>
				<td class="td" width="100">No. Telphone</td>
				<td class="td" width="80">Control</td>
			</tr>
			<?
			$result2 = mysql_query("select * from member order by name asc");
			while($row2 = mysql_fetch_array($result2)){
			echo "<tr>
				<td class=\"td\">$row2[0]</td>
				<td class=\"td\">$row2[1]</td>
				<td class=\"td\">$row2[2]</td>
				<td class=\"td\">$row2[3]</td>
				<td class=\"td\">::<a href=\"myfunction/hapusmember.php?code=$row2[0]\"><u>Delete</u></a>::</td>
			</tr>";
			}
			?>
			</tbody>
			</table></div>
		</td>
	</tr>
	</tbody></form>
	</table>

	<!-- procedure 3 -->
	<p>INPUT SALDO MEMBER BANKING</p>
	<table><form name="formc" id=subscribe onSubmit="return formc_onsubmit()" method="post" action="myfunction/send3">
	<tbody>
	<tr>
		<td class="td" width="120" valign="top">Member Code</td>
		<td class="td" width="360"><input type="text" name="codem" maxlength="8" size="50"/></td>
	</tr>
	<tr>
		<td class="td" width="120" valign="top">Transaction</td>
		<td class="td" width="360"><input type="text" name="trans" maxlength="15" size="50"/></td>
	</tr>
	<tr>
		<td class="td" width="120" valign="top">Saldo</td>
		<td class="td" width="360"><input type="text" name="saldo" maxlength="15" size="50"/></td>
	</tr>
	<tr>
		<td class="td" width="120" valign="top">Note</td>
		<td class="td" width="360"><input type="text" name="note" maxlength="50" size="50"/></td>
	</tr>
	<tr>
		<td class="td" width="120" valign="top">Teller Code</td>
		<td class="td" width="360"><input type="text" name="codet" maxlength="8" size="50"/></td>
	</tr>
	<tr>
		<td width="80">&nbsp;</td>
		<td width="360"><input type="submit" value="submit" name="submit"/> 
		<input type="reset" value="reset" name="reset"/></td>
	</tr>
	</tbody></form>
	</table>

	<!-- procedure 4 -->
	<p>TABLE SALDO MEMBER BANKING</p>
	<table><tbody>
		<tr>
			<td class="td" width="80" valign="top">Date</td>
			<td class="td" width="140" valign="top">Member Name</td>
			<td class="td" width="100" valign="top">Transaction</td>
			<td class="td" width="100" valign="top">Saldo</td>
			<td class="td" width="150" valign="top">Note</td>
			<td class="td" width="140" valign="top">Teller Name</td>
			<td class="td" width="90" valign="top">Control</td>
		</tr>
		<?
		$result3 = mysql_query("select saldo.date, member.name, saldo.trans, saldo.saldo, 
		saldo.note, teller.name, saldo.id from saldo, member, teller where saldo.codem = 
		member.code and saldo.codet=teller.code order by id desc");
		while($row3 = mysql_fetch_array($result3)){
		echo "<tr>
			<td class=\"td\">$row3[0]</td>
			<td class=\"td\">$row3[1]</td>
			<td class=\"td\">$row3[2]</td>
			<td class=\"td\">$row3[3]</td>
			<td class=\"td\">$row3[4]</td>
			<td class=\"td\">$row3[5]</td>
			<td class=\"td\">::<a href=\"myfunction/hapussaldo.php?id=$row3[6]\"><u>Delete</u></a>::</td>
			</tr>";
		}
		?>
	</tbody></table>
	</div>
</div>

<p>::---:: Webdesign and Multi Media ::---::<br><font color=#00FF66>Powered By: An's Brow</font></p>

</center></body>
</html>